#include "CCrossBowBolt.h"
#include "CWorldEngine.h"
#include "ObjectManager.h"

void CCrossBowBolt::Update(float fElapsedTime)
{
	CBase::Update(fElapsedTime);
}
bool CCrossBowBolt::CheckCollision(CBase* pBase)
{
	RECT temp_col = GetCollisionRect();
	temp_col.top -= (temp_col.bottom - temp_col.top)/2;

	if(CWorldEngine::GetInstance()->CheckSolidGround(&temp_col))
	{
		ObjectManager::GetInstance()->RemoveObject(this);
		return true;
	}

	return false;
}